<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DGRv2: ns3::DGRRoutingLinkRecord Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">DGRv2<span id="projectnumber">&#160;2-dev</span>
   </div>
   <div id="projectbrief">A Delay-Guaranteed Routing Protocol model in ns-3</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('de/d53/classns3_1_1_d_g_r_routing_link_record.html','../../'); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="../../d5/d4e/classns3_1_1_d_g_r_routing_link_record-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">ns3::DGRRoutingLinkRecord Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>A single link record for a link state advertisement.  
 <a href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="../../df/d96/dgr-router-interface_8h_source.html">dgr-router-interface.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="../../closed.png" alt="+"/> Collaboration diagram for ns3::DGRRoutingLinkRecord:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../d5/dec/classns3_1_1_d_g_r_routing_link_record__coll__graph.png" border="0" usemap="#ans3_1_1_d_g_r_routing_link_record_coll__map" alt="Collaboration graph"/></div>
<map name="ans3_1_1_d_g_r_routing_link_record_coll__map" id="ans3_1_1_d_g_r_routing_link_record_coll__map">
<area shape="rect" title="A single link record for a link state advertisement." alt="" coords="69,108,273,133"/>
<area shape="rect" title=" " alt="" coords="5,5,108,31"/>
<area shape="poly" title=" " alt="" coords="65,43,74,64,88,82,106,96,128,105,125,110,104,100,84,86,70,66,61,45"/>
<area shape="rect" title=" " alt="" coords="132,5,211,31"/>
<area shape="poly" title=" " alt="" coords="174,45,174,108,169,108,169,45"/>
<area shape="rect" title=" " alt="" coords="243,5,318,31"/>
<area shape="poly" title=" " alt="" coords="277,45,268,66,253,86,234,100,213,110,211,105,232,96,249,82,263,63,272,43"/>
</map>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a93b89b9f89407a39712186911ad12a4b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4b">LinkType</a> { <br />
&#160;&#160;<a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4ba78859ac25ae88fd715dc691e1fcea4f2">Unknown</a> = 0
, <a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4bac9c0a2d3da9eb9fdafee93e52a498c84">PointToPoint</a>
, <a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4baa0b0a272a289d2f1fcafdfedcde669b7">TransitNetwork</a>
, <a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4ba31c95bb0542fb4fab6cb056f88eea561">StubNetwork</a>
, <br />
&#160;&#160;<a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4ba02196af5dc5bdbe7b6da0e1e8082640b">VirtualLink</a>
<br />
 }</td></tr>
<tr class="memdesc:a93b89b9f89407a39712186911ad12a4b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumeration of the possible types of Global Routing Link Records.  <a href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4b">More...</a><br /></td></tr>
<tr class="separator:a93b89b9f89407a39712186911ad12a4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac9084e29ac639975a3e265cdd618d2c2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#ac9084e29ac639975a3e265cdd618d2c2">DGRRoutingLinkRecord</a> ()</td></tr>
<tr class="memdesc:ac9084e29ac639975a3e265cdd618d2c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct an empty ("uninitialized") Global Routing Link Record.  <br /></td></tr>
<tr class="separator:ac9084e29ac639975a3e265cdd618d2c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2d023b51b9299b5e20fccd6e518c672"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#aa2d023b51b9299b5e20fccd6e518c672">DGRRoutingLinkRecord</a> (<a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4b">LinkType</a> linkType, Ipv4Address linkId, Ipv4Address linkData, uint16_t metric)</td></tr>
<tr class="memdesc:aa2d023b51b9299b5e20fccd6e518c672"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct an initialized Global Routing Link Record.  <br /></td></tr>
<tr class="separator:aa2d023b51b9299b5e20fccd6e518c672"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad42c3b86dbd2e8716653a004dafd515b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#ad42c3b86dbd2e8716653a004dafd515b">~DGRRoutingLinkRecord</a> ()</td></tr>
<tr class="memdesc:ad42c3b86dbd2e8716653a004dafd515b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy a Global Routing Link Record.  <br /></td></tr>
<tr class="separator:ad42c3b86dbd2e8716653a004dafd515b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97080a8409f77898f4485230be0be5e4"><td class="memItemLeft" align="right" valign="top">Ipv4Address&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a97080a8409f77898f4485230be0be5e4">GetLinkData</a> (void) const</td></tr>
<tr class="memdesc:a97080a8409f77898f4485230be0be5e4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the Link Data field of the Global Routing Link Record.  <br /></td></tr>
<tr class="separator:a97080a8409f77898f4485230be0be5e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fe6e135674ef321bc11b48f90071857"><td class="memItemLeft" align="right" valign="top">Ipv4Address&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a9fe6e135674ef321bc11b48f90071857">GetLinkId</a> (void) const</td></tr>
<tr class="memdesc:a9fe6e135674ef321bc11b48f90071857"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the Link ID field of the Global Routing Link Record.  <br /></td></tr>
<tr class="separator:a9fe6e135674ef321bc11b48f90071857"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9148eaf7a9d088a397e66164c1f30b9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4b">LinkType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#ab9148eaf7a9d088a397e66164c1f30b9">GetLinkType</a> (void) const</td></tr>
<tr class="memdesc:ab9148eaf7a9d088a397e66164c1f30b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the Link Type field of the Global Routing Link Record.  <br /></td></tr>
<tr class="separator:ab9148eaf7a9d088a397e66164c1f30b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af96cb9a05b3d95d14b6af29e058e3712"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#af96cb9a05b3d95d14b6af29e058e3712">GetMetric</a> (void) const</td></tr>
<tr class="memdesc:af96cb9a05b3d95d14b6af29e058e3712"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the Metric Data field of the Global Routing Link Record.  <br /></td></tr>
<tr class="separator:af96cb9a05b3d95d14b6af29e058e3712"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06083e776955f21fe1fd4e4927cf0b24"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a06083e776955f21fe1fd4e4927cf0b24">SetLinkData</a> (Ipv4Address addr)</td></tr>
<tr class="memdesc:a06083e776955f21fe1fd4e4927cf0b24"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Link Data field of the Global Routing Link Record.  <br /></td></tr>
<tr class="separator:a06083e776955f21fe1fd4e4927cf0b24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a203541f10ca13f9cfb1987fbbff4416b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a203541f10ca13f9cfb1987fbbff4416b">SetLinkId</a> (Ipv4Address addr)</td></tr>
<tr class="memdesc:a203541f10ca13f9cfb1987fbbff4416b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Link ID field of the Global Routing Link Record.  <br /></td></tr>
<tr class="separator:a203541f10ca13f9cfb1987fbbff4416b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacc16a8566cd389fd974cbeb8dde6ddd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#aacc16a8566cd389fd974cbeb8dde6ddd">SetLinkType</a> (<a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4b">LinkType</a> linkType)</td></tr>
<tr class="memdesc:aacc16a8566cd389fd974cbeb8dde6ddd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Link Type field of the Global Routing Link Record.  <br /></td></tr>
<tr class="separator:aacc16a8566cd389fd974cbeb8dde6ddd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6b9632b024b3799a25209f1392c1ab8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#ac6b9632b024b3799a25209f1392c1ab8">SetMetric</a> (uint16_t metric)</td></tr>
<tr class="memdesc:ac6b9632b024b3799a25209f1392c1ab8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the Metric Data field of the Global Routing Link Record.  <br /></td></tr>
<tr class="separator:ac6b9632b024b3799a25209f1392c1ab8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a90859ad36a2936e26b9e933a323e35df"><td class="memItemLeft" align="right" valign="top">Ipv4Address&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a90859ad36a2936e26b9e933a323e35df">m_linkData</a></td></tr>
<tr class="memdesc:a90859ad36a2936e26b9e933a323e35df"><td class="mdescLeft">&#160;</td><td class="mdescRight">m_linkId and m_linkData are defined by OSPF to have different meanings depending on the type of link a given link records represents.  <br /></td></tr>
<tr class="separator:a90859ad36a2936e26b9e933a323e35df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19605f0540a6904bd5801a7e1bd07895"><td class="memItemLeft" align="right" valign="top">Ipv4Address&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a19605f0540a6904bd5801a7e1bd07895">m_linkId</a></td></tr>
<tr class="memdesc:a19605f0540a6904bd5801a7e1bd07895"><td class="mdescLeft">&#160;</td><td class="mdescRight">m_linkId and m_linkData are defined by OSPF to have different meanings depending on the type of link a given link records represents.  <br /></td></tr>
<tr class="separator:a19605f0540a6904bd5801a7e1bd07895"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae33ce84e5118670a92ec8253b4e35a6e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4b">LinkType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#ae33ce84e5118670a92ec8253b4e35a6e">m_linkType</a></td></tr>
<tr class="memdesc:ae33ce84e5118670a92ec8253b4e35a6e"><td class="mdescLeft">&#160;</td><td class="mdescRight">The type of the Global Routing Link Record.  <br /></td></tr>
<tr class="separator:ae33ce84e5118670a92ec8253b4e35a6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad36a9c3468f8ca6ef6335eff2dfca4fe"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#ad36a9c3468f8ca6ef6335eff2dfca4fe">m_metric</a></td></tr>
<tr class="memdesc:ad36a9c3468f8ca6ef6335eff2dfca4fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">The metric for a given link.  <br /></td></tr>
<tr class="separator:ad36a9c3468f8ca6ef6335eff2dfca4fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:ad6d7a02de74a135f5d909dcc2a7be8e7"><td class="memItemLeft" align="right" valign="top">class&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#ad6d7a02de74a135f5d909dcc2a7be8e7">DGRRoutingLSA</a></td></tr>
<tr class="memdesc:ad6d7a02de74a135f5d909dcc2a7be8e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Friend class.  <br /></td></tr>
<tr class="separator:ad6d7a02de74a135f5d909dcc2a7be8e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A single link record for a link state advertisement. </p>
<p>The GlobalRoutingLinkRecord is modeled after the OSPF link record field of a Link State Advertisement. Right now we will only see two types of link records corresponding to a stub network and a point-to-point link (channel). </p>

<p class="definition">Definition at line <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html#l00051">51</a> of file <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html">dgr-router-interface.h</a>.</p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a93b89b9f89407a39712186911ad12a4b" name="a93b89b9f89407a39712186911ad12a4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93b89b9f89407a39712186911ad12a4b">&#9670;&#160;</a></span>LinkType</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4b">ns3::DGRRoutingLinkRecord::LinkType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enumeration of the possible types of Global Routing Link Records. </p>
<p>These values are defined in the OSPF spec. We currently only use PointToPoint and StubNetwork types. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a93b89b9f89407a39712186911ad12a4ba78859ac25ae88fd715dc691e1fcea4f2" name="a93b89b9f89407a39712186911ad12a4ba78859ac25ae88fd715dc691e1fcea4f2"></a>Unknown&#160;</td><td class="fielddoc"><p>Uninitialized Link Record. </p>
</td></tr>
<tr><td class="fieldname"><a id="a93b89b9f89407a39712186911ad12a4bac9c0a2d3da9eb9fdafee93e52a498c84" name="a93b89b9f89407a39712186911ad12a4bac9c0a2d3da9eb9fdafee93e52a498c84"></a>PointToPoint&#160;</td><td class="fielddoc"><p>Record representing a point to point channel. </p>
</td></tr>
<tr><td class="fieldname"><a id="a93b89b9f89407a39712186911ad12a4baa0b0a272a289d2f1fcafdfedcde669b7" name="a93b89b9f89407a39712186911ad12a4baa0b0a272a289d2f1fcafdfedcde669b7"></a>TransitNetwork&#160;</td><td class="fielddoc"><p>Unused &ndash; for future OSPF compatibility <br  />
 </p>
</td></tr>
<tr><td class="fieldname"><a id="a93b89b9f89407a39712186911ad12a4ba31c95bb0542fb4fab6cb056f88eea561" name="a93b89b9f89407a39712186911ad12a4ba31c95bb0542fb4fab6cb056f88eea561"></a>StubNetwork&#160;</td><td class="fielddoc"><p>Record represents a leaf node network. </p>
</td></tr>
<tr><td class="fieldname"><a id="a93b89b9f89407a39712186911ad12a4ba02196af5dc5bdbe7b6da0e1e8082640b" name="a93b89b9f89407a39712186911ad12a4ba02196af5dc5bdbe7b6da0e1e8082640b"></a>VirtualLink&#160;</td><td class="fielddoc"><p>Unused &ndash; for future OSPF compatibility <br  />
 </p>
</td></tr>
</table>

<p class="definition">Definition at line <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html#l00062">62</a> of file <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html">dgr-router-interface.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac9084e29ac639975a3e265cdd618d2c2" name="ac9084e29ac639975a3e265cdd618d2c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9084e29ac639975a3e265cdd618d2c2">&#9670;&#160;</a></span>DGRRoutingLinkRecord() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ns3::DGRRoutingLinkRecord::DGRRoutingLinkRecord </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct an empty ("uninitialized") Global Routing Link Record. </p>
<p>The Link ID and Link Data Ipv4 addresses are set to "0.0.0.0"; The Link Type is set to Unknown; The metric is set to 0. </p>

<p class="definition">Definition at line <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00045">45</a> of file <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html">dgr-router-interface.cc</a>.</p>

</div>
</div>
<a id="aa2d023b51b9299b5e20fccd6e518c672" name="aa2d023b51b9299b5e20fccd6e518c672"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2d023b51b9299b5e20fccd6e518c672">&#9670;&#160;</a></span>DGRRoutingLinkRecord() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ns3::DGRRoutingLinkRecord::DGRRoutingLinkRecord </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4b">LinkType</a>&#160;</td>
          <td class="paramname"><em>linkType</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Ipv4Address&#160;</td>
          <td class="paramname"><em>linkId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Ipv4Address&#160;</td>
          <td class="paramname"><em>linkData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>metric</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct an initialized Global Routing Link Record. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">linkType</td><td>The type of link record to construct. </td></tr>
    <tr><td class="paramname">linkId</td><td>The link ID for the record. </td></tr>
    <tr><td class="paramname">linkData</td><td>The link data field for the record. </td></tr>
    <tr><td class="paramname">metric</td><td>The metric field for the record. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4b" title="Enumeration of the possible types of Global Routing Link Records.">LinkType</a> </dd>
<dd>
<a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a203541f10ca13f9cfb1987fbbff4416b" title="Set the Link ID field of the Global Routing Link Record.">SetLinkId</a> </dd>
<dd>
<a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a06083e776955f21fe1fd4e4927cf0b24" title="Set the Link Data field of the Global Routing Link Record.">SetLinkData</a> </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00055">55</a> of file <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html">dgr-router-interface.cc</a>.</p>

</div>
</div>
<a id="ad42c3b86dbd2e8716653a004dafd515b" name="ad42c3b86dbd2e8716653a004dafd515b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad42c3b86dbd2e8716653a004dafd515b">&#9670;&#160;</a></span>~DGRRoutingLinkRecord()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ns3::DGRRoutingLinkRecord::~DGRRoutingLinkRecord </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destroy a Global Routing Link Record. </p>
<p>Currently does nothing. Here as a placeholder only. </p>

<p class="definition">Definition at line <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00069">69</a> of file <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html">dgr-router-interface.cc</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a97080a8409f77898f4485230be0be5e4" name="a97080a8409f77898f4485230be0be5e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97080a8409f77898f4485230be0be5e4">&#9670;&#160;</a></span>GetLinkData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Ipv4Address ns3::DGRRoutingLinkRecord::GetLinkData </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the Link Data field of the Global Routing Link Record. </p>
<p>For an OSPF type 1 link (PointToPoint) the Link Data will be the IP address of the node of the local side of the link.</p>
<p>For an OSPF type 3 link (StubNetwork), the Link Data will be the network mask</p>
<dl class="section return"><dt>Returns</dt><dd>The Ipv4Address corresponding to the Link Data field of the record. </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00089">89</a> of file <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html">dgr-router-interface.cc</a>.</p>

<p class="reference">References <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html#l00225">m_linkData</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l01374">ns3::DGRRouteManagerImpl::CheckForStubNode()</a>, <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00198">ns3::DGRRoutingLSA::CopyLinkRecords()</a>, <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l00511">ns3::DGRRouteManagerLSDB::GetLSAByLinkData()</a>, <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l00696">ns3::DGRRouteManagerImpl::InitializeRoutes()</a>, <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l01456">ns3::DGRRouteManagerImpl::SPFCalculate()</a>, <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l01283">ns3::DGRRouteManagerImpl::SPFGetNextLink()</a>, <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l02059">ns3::DGRRouteManagerImpl::SPFIntraAddRouter()</a>, <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l01832">ns3::DGRRouteManagerImpl::SPFIntraAddStub()</a>, and <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l01095">ns3::DGRRouteManagerImpl::SPFNexthopCalculation()</a>.</p>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../de/d53/classns3_1_1_d_g_r_routing_link_record_a97080a8409f77898f4485230be0be5e4_icgraph.png" border="0" usemap="#ade/d53/classns3_1_1_d_g_r_routing_link_record_a97080a8409f77898f4485230be0be5e4_icgraph" alt=""/></div>
<map name="ade/d53/classns3_1_1_d_g_r_routing_link_record_a97080a8409f77898f4485230be0be5e4_icgraph" id="ade/d53/classns3_1_1_d_g_r_routing_link_record_a97080a8409f77898f4485230be0be5e4_icgraph">
<area shape="rect" title="Get the Link Data field of the Global Routing Link Record." alt="" coords="1283,240,1487,280"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a1f608c8ac5a62f915208141c2d7bea22" title="Test if a node is a stub, from an OSPF sense." alt="" coords="515,247,721,287"/>
<area shape="poly" title=" " alt="" coords="1269,264,722,268,722,263,1269,258"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a910c2efcc40a79d4c062eb08ceb11522" title="Calculate the shortest path first (SPF) tree." alt="" coords="260,189,467,229"/>
<area shape="poly" title=" " alt="" coords="1269,250,1234,247,1021,233,808,224,467,214,467,208,808,219,1021,228,1235,241,1269,244"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a3b798959aeda8a76373705151497692e" title="Compute routes using a Dijkstra SPF computation and populate per&#45;node forwarding tables." alt="" coords="5,189,212,229"/>
<area shape="poly" title=" " alt="" coords="1365,229,1343,193,1313,151,1276,110,1233,77,1185,50,1142,31,1102,19,1064,12,981,8,876,9,617,9,543,15,471,30,400,53,333,81,218,141,140,191,137,187,215,137,331,76,398,48,469,25,543,10,617,4,876,4,981,3,1064,7,1103,14,1144,26,1187,45,1236,72,1280,106,1317,148,1347,190,1369,226"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#a206ff392d0561c4b244a8c6fe8d824ab" title="Copy any Global Routing Link Records in a given Global Routing Link State Advertisement to the curren..." alt="" coords="1053,476,1210,516"/>
<area shape="poly" title=" " alt="" coords="1367,294,1314,372,1278,415,1236,453,1192,478,1190,474,1233,448,1274,411,1310,369,1363,291"/>
<area shape="rect" href="../../d0/d2b/classns3_1_1_d_g_r_route_manager_l_s_d_b.html#ac6f9ca728688bae5adc4172dee708553" title="Look up the Link State Advertisement associated with the given link state ID (address)." alt="" coords="769,297,980,337"/>
<area shape="poly" title=" " alt="" coords="1269,277,1235,281,980,309,980,304,1234,276,1269,272"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a1ac857e005409b302b1bd2fb1180af0a" title="Search for a link between two vertices." alt="" coords="1028,399,1235,439"/>
<area shape="poly" title=" " alt="" coords="1355,291,1301,337,1236,382,1196,401,1194,396,1233,378,1298,333,1351,287"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#aa10b6b58af69a3da1d8478d50e78bef8" title="Calculate nexthop from root through V (parent) to vertex W (destination) with given distance from roo..." alt="" coords="771,361,978,401"/>
<area shape="poly" title=" " alt="" coords="1312,287,1235,309,1102,341,979,365,978,360,1101,335,1234,304,1311,282"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a58756bc6216f5ebe1941a2102ae4cdf9" title="Add a host route to the routing tables." alt="" coords="515,44,721,84"/>
<area shape="poly" title=" " alt="" coords="1359,231,1306,173,1272,145,1234,122,1169,98,1101,79,1031,66,962,58,831,52,721,56,721,51,831,47,963,53,1032,61,1102,74,1170,93,1236,118,1275,140,1310,169,1363,227"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a403b832078dcb8a4facb2ae6c7b2ce15" title="Add a stub to the routing tables." alt="" coords="1028,132,1235,172"/>
<area shape="poly" title=" " alt="" coords="1329,236,1234,193,1187,175,1189,170,1236,188,1331,231"/>
<area shape="poly" title=" " alt="" coords="515,246,452,232,453,227,516,241"/>
<area shape="poly" title=" " alt="" coords="247,212,212,212,212,207,247,207"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#a042cca1bebf1189a3e40f0c3abcd5937" title="Copy constructor for a Global Routing Link State Advertisement." alt="" coords="796,476,953,516"/>
<area shape="poly" title=" " alt="" coords="1039,499,954,499,954,493,1039,493"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#af09c521adba74e1538773cebf14b3929" title="Assignment operator for a Global Routing Link State Advertisement." alt="" coords="796,540,953,580"/>
<area shape="poly" title=" " alt="" coords="1040,521,954,543,953,538,1039,516"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#ab573904f9f357e2b802b1bbdcdc3247d" title="Examine the links in v&#39;s LSA and update the list of candidates with any vertices not already on the l..." alt="" coords="515,311,721,351"/>
<area shape="poly" title=" " alt="" coords="756,326,722,328,721,323,756,321"/>
<area shape="poly" title=" " alt="" coords="531,308,514,301,448,266,393,232,395,227,450,262,516,296,534,303"/>
<area shape="poly" title=" " alt="" coords="1014,425,896,424,769,416,640,398,514,365,412,333,312,296,155,232,157,227,314,291,414,328,515,360,641,393,770,411,896,419,1014,420"/>
<area shape="poly" title=" " alt="" coords="1014,404,978,399,978,394,1015,399"/>
<area shape="poly" title=" " alt="" coords="759,361,719,353,720,348,760,356"/>
<area shape="poly" title=" " alt="" coords="530,92,516,98,479,120,444,145,388,191,385,187,441,141,476,116,513,94,528,87"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a71dd2f4c78a96ecb7d86dd75fd6f78bd" title="Process Stub nodes." alt="" coords="515,132,721,172"/>
<area shape="poly" title=" " alt="" coords="1014,155,722,155,722,149,1014,149"/>
<area shape="poly" title=" " alt="" coords="516,178,453,192,452,187,515,172"/>
<area shape="poly" title=" " alt="" coords="661,120,646,113,618,111,593,113,579,117,573,123,576,131,571,132,568,122,576,113,592,107,618,105,647,108,663,115"/>
</map>
</div>

</div>
</div>
<a id="a9fe6e135674ef321bc11b48f90071857" name="a9fe6e135674ef321bc11b48f90071857"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9fe6e135674ef321bc11b48f90071857">&#9670;&#160;</a></span>GetLinkId()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Ipv4Address ns3::DGRRoutingLinkRecord::GetLinkId </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the Link ID field of the Global Routing Link Record. </p>
<p>For an OSPF type 1 link (PointToPoint) the Link ID will be the Router ID of the neighboring router.</p>
<p>For an OSPF type 3 link (StubNetwork), the Link ID will be the adjacent neighbor's IP address</p>
<dl class="section return"><dt>Returns</dt><dd>The Ipv4Address corresponding to the Link ID field of the record. </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00075">75</a> of file <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html">dgr-router-interface.cc</a>.</p>

<p class="reference">References <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html#l00214">m_linkId</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l01374">ns3::DGRRouteManagerImpl::CheckForStubNode()</a>, <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00198">ns3::DGRRoutingLSA::CopyLinkRecords()</a>, <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l00696">ns3::DGRRouteManagerImpl::InitializeRoutes()</a>, <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l01283">ns3::DGRRouteManagerImpl::SPFGetNextLink()</a>, <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l01832">ns3::DGRRouteManagerImpl::SPFIntraAddStub()</a>, <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l00861">ns3::DGRRouteManagerImpl::SPFNext()</a>, and <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l01798">ns3::DGRRouteManagerImpl::SPFProcessStubs()</a>.</p>
<div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../de/d53/classns3_1_1_d_g_r_routing_link_record_a9fe6e135674ef321bc11b48f90071857_icgraph.png" border="0" usemap="#ade/d53/classns3_1_1_d_g_r_routing_link_record_a9fe6e135674ef321bc11b48f90071857_icgraph" alt=""/></div>
<map name="ade/d53/classns3_1_1_d_g_r_routing_link_record_a9fe6e135674ef321bc11b48f90071857_icgraph" id="ade/d53/classns3_1_1_d_g_r_routing_link_record_a9fe6e135674ef321bc11b48f90071857_icgraph">
<area shape="rect" title="Get the Link ID field of the Global Routing Link Record." alt="" coords="1279,151,1483,191"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a1f608c8ac5a62f915208141c2d7bea22" title="Test if a node is a stub, from an OSPF sense." alt="" coords="515,185,721,225"/>
<area shape="poly" title=" " alt="" coords="1265,179,722,203,722,197,1265,174"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a3b798959aeda8a76373705151497692e" title="Compute routes using a Dijkstra SPF computation and populate per&#45;node forwarding tables." alt="" coords="5,185,212,225"/>
<area shape="poly" title=" " alt="" coords="1348,144,1296,99,1264,78,1230,60,1134,26,1057,11,976,8,874,9,617,9,544,14,471,29,401,52,334,79,219,138,140,187,137,182,216,133,332,74,399,47,470,24,543,9,617,3,874,3,977,3,1057,6,1136,21,1232,56,1266,73,1299,95,1352,139"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#a206ff392d0561c4b244a8c6fe8d824ab" title="Copy any Global Routing Link Records in a given Global Routing Link State Advertisement to the curren..." alt="" coords="1049,374,1206,414"/>
<area shape="poly" title=" " alt="" coords="1351,203,1232,313,1156,376,1153,372,1229,309,1347,199"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a1ac857e005409b302b1bd2fb1180af0a" title="Search for a link between two vertices." alt="" coords="1024,259,1231,299"/>
<area shape="poly" title=" " alt="" coords="1327,200,1232,243,1185,262,1183,257,1230,238,1325,195"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#ab573904f9f357e2b802b1bbdcdc3247d" title="Examine the links in v&#39;s LSA and update the list of candidates with any vertices not already on the l..." alt="" coords="515,249,721,289"/>
<area shape="poly" title=" " alt="" coords="1265,188,770,250,722,257,721,251,769,245,1265,182"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a403b832078dcb8a4facb2ae6c7b2ce15" title="Add a stub to the routing tables." alt="" coords="1024,94,1231,134"/>
<area shape="poly" title=" " alt="" coords="1278,151,1216,137,1217,131,1279,146"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a71dd2f4c78a96ecb7d86dd75fd6f78bd" title="Process Stub nodes." alt="" coords="769,94,976,134"/>
<area shape="poly" title=" " alt="" coords="1343,145,1292,111,1261,96,1230,85,1193,77,1154,72,1077,73,1004,83,942,97,941,91,1003,78,1076,68,1154,67,1193,71,1231,79,1264,91,1294,107,1346,141"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a910c2efcc40a79d4c062eb08ceb11522" title="Calculate the shortest path first (SPF) tree." alt="" coords="260,185,467,225"/>
<area shape="poly" title=" " alt="" coords="501,207,467,207,467,202,501,202"/>
<area shape="poly" title=" " alt="" coords="247,207,212,207,212,202,247,202"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#a042cca1bebf1189a3e40f0c3abcd5937" title="Copy constructor for a Global Routing Link State Advertisement." alt="" coords="794,374,951,414"/>
<area shape="poly" title=" " alt="" coords="1035,397,951,397,951,391,1035,391"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#af09c521adba74e1538773cebf14b3929" title="Assignment operator for a Global Routing Link State Advertisement." alt="" coords="794,438,951,478"/>
<area shape="poly" title=" " alt="" coords="1036,420,952,441,951,436,1034,414"/>
<area shape="poly" title=" " alt="" coords="1034,305,976,314,847,325,745,327,644,320,514,303,422,288,330,268,176,227,178,222,331,262,423,282,515,298,644,315,745,322,846,320,976,309,1033,300"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#aa10b6b58af69a3da1d8478d50e78bef8" title="Calculate nexthop from root through V (parent) to vertex W (destination) with given distance from roo..." alt="" coords="769,259,976,299"/>
<area shape="poly" title=" " alt="" coords="1011,282,976,282,976,277,1011,277"/>
<area shape="poly" title=" " alt="" coords="756,277,722,276,722,270,756,272"/>
<area shape="poly" title=" " alt="" coords="524,248,443,227,444,222,525,243"/>
<area shape="poly" title=" " alt="" coords="1011,117,976,117,976,111,1011,111"/>
<area shape="poly" title=" " alt="" coords="756,134,515,175,456,187,455,182,514,170,756,129"/>
<area shape="poly" title=" " alt="" coords="916,82,901,75,873,73,848,75,833,79,828,85,831,93,826,94,823,84,830,75,847,69,873,67,902,70,918,77"/>
</map>
</div>

</div>
</div>
<a id="ab9148eaf7a9d088a397e66164c1f30b9" name="ab9148eaf7a9d088a397e66164c1f30b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9148eaf7a9d088a397e66164c1f30b9">&#9670;&#160;</a></span>GetLinkType()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4b">DGRRoutingLinkRecord::LinkType</a> ns3::DGRRoutingLinkRecord::GetLinkType </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the Link Type field of the Global Routing Link Record. </p>
<p>The Link Type describes the kind of link a given record represents. The values are defined by OSPF.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4b" title="Enumeration of the possible types of Global Routing Link Records.">LinkType</a> </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The LinkType of the current Global Routing Link Record. </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00103">103</a> of file <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html">dgr-router-interface.cc</a>.</p>

<p class="reference">References <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html#l00231">m_linkType</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l01374">ns3::DGRRouteManagerImpl::CheckForStubNode()</a>, <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00198">ns3::DGRRoutingLSA::CopyLinkRecords()</a>, <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l00511">ns3::DGRRouteManagerLSDB::GetLSAByLinkData()</a>, <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l00696">ns3::DGRRouteManagerImpl::InitializeRoutes()</a>, <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l02059">ns3::DGRRouteManagerImpl::SPFIntraAddRouter()</a>, <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l00861">ns3::DGRRouteManagerImpl::SPFNext()</a>, and <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l01798">ns3::DGRRouteManagerImpl::SPFProcessStubs()</a>.</p>
<div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-3-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../de/d53/classns3_1_1_d_g_r_routing_link_record_ab9148eaf7a9d088a397e66164c1f30b9_icgraph.png" border="0" usemap="#ade/d53/classns3_1_1_d_g_r_routing_link_record_ab9148eaf7a9d088a397e66164c1f30b9_icgraph" alt=""/></div>
<map name="ade/d53/classns3_1_1_d_g_r_routing_link_record_ab9148eaf7a9d088a397e66164c1f30b9_icgraph" id="ade/d53/classns3_1_1_d_g_r_routing_link_record_ab9148eaf7a9d088a397e66164c1f30b9_icgraph">
<area shape="rect" title="Get the Link Type field of the Global Routing Link Record." alt="" coords="1028,166,1232,206"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a1f608c8ac5a62f915208141c2d7bea22" title="Test if a node is a stub, from an OSPF sense." alt="" coords="515,291,721,331"/>
<area shape="poly" title=" " alt="" coords="1096,217,1044,253,1013,271,981,284,915,302,847,312,781,317,722,318,721,313,781,312,847,307,914,296,979,279,1011,266,1041,249,1093,212"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a3b798959aeda8a76373705151497692e" title="Compute routes using a Dijkstra SPF computation and populate per&#45;node forwarding tables." alt="" coords="5,112,212,152"/>
<area shape="poly" title=" " alt="" coords="1102,157,1049,105,1016,80,979,60,924,40,867,26,808,16,749,10,630,11,514,23,405,43,307,67,161,115,160,110,305,62,403,38,513,17,629,5,749,5,809,10,868,20,925,35,981,55,1018,75,1053,101,1106,153"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#a206ff392d0561c4b244a8c6fe8d824ab" title="Copy any Global Routing Link Records in a given Global Routing Link State Advertisement to the curren..." alt="" coords="796,166,953,206"/>
<area shape="poly" title=" " alt="" coords="1014,188,953,188,953,183,1014,183"/>
<area shape="rect" href="../../d0/d2b/classns3_1_1_d_g_r_route_manager_l_s_d_b.html#ac6f9ca728688bae5adc4172dee708553" title="Look up the Link State Advertisement associated with the given link state ID (address)." alt="" coords="769,102,980,142"/>
<area shape="poly" title=" " alt="" coords="1035,165,954,144,956,139,1037,160"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#ab573904f9f357e2b802b1bbdcdc3247d" title="Examine the links in v&#39;s LSA and update the list of candidates with any vertices not already on the l..." alt="" coords="515,48,721,88"/>
<area shape="poly" title=" " alt="" coords="1094,159,1042,122,1011,105,979,92,914,76,847,67,781,63,721,63,721,58,781,58,847,61,915,71,981,87,1014,101,1045,118,1097,155"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a58756bc6216f5ebe1941a2102ae4cdf9" title="Add a host route to the routing tables." alt="" coords="771,230,978,270"/>
<area shape="poly" title=" " alt="" coords="1037,212,956,232,954,227,1035,206"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a71dd2f4c78a96ecb7d86dd75fd6f78bd" title="Process Stub nodes." alt="" coords="771,368,978,408"/>
<area shape="poly" title=" " alt="" coords="1102,218,1048,271,982,328,915,370,912,366,978,323,1044,267,1098,214"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a910c2efcc40a79d4c062eb08ceb11522" title="Calculate the shortest path first (SPF) tree." alt="" coords="260,234,467,274"/>
<area shape="poly" title=" " alt="" coords="515,290,452,276,453,271,516,285"/>
<area shape="poly" title=" " alt="" coords="307,230,151,155,153,150,310,225"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#a042cca1bebf1189a3e40f0c3abcd5937" title="Copy constructor for a Global Routing Link State Advertisement." alt="" coords="539,176,697,216"/>
<area shape="poly" title=" " alt="" coords="782,192,697,196,697,190,782,187"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#af09c521adba74e1538773cebf14b3929" title="Assignment operator for a Global Routing Link State Advertisement." alt="" coords="539,112,697,152"/>
<area shape="poly" title=" " alt="" coords="782,169,696,151,697,146,783,164"/>
<area shape="poly" title=" " alt="" coords="764,101,714,91,715,86,765,96"/>
<area shape="poly" title=" " alt="" coords="528,96,516,103,474,134,436,170,381,235,377,232,432,166,470,130,513,98,525,92"/>
<area shape="poly" title=" " alt="" coords="757,253,467,255,467,250,757,248"/>
<area shape="poly" title=" " alt="" coords="757,388,638,375,575,363,514,345,478,331,444,312,389,276,392,271,447,308,481,326,516,340,576,358,639,370,758,383"/>
<area shape="poly" title=" " alt="" coords="918,357,903,350,875,347,850,349,835,354,830,360,833,367,828,369,825,359,832,349,849,344,875,342,904,344,920,352"/>
</map>
</div>

</div>
</div>
<a id="af96cb9a05b3d95d14b6af29e058e3712" name="af96cb9a05b3d95d14b6af29e058e3712"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af96cb9a05b3d95d14b6af29e058e3712">&#9670;&#160;</a></span>GetMetric()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t ns3::DGRRoutingLinkRecord::GetMetric </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the Metric Data field of the Global Routing Link Record. </p>
<p>The metric is an abstract cost associated with forwarding a packet across a link. A sum of metrics must have a well-defined meaning. That is, you shouldn't use bandwidth as a metric (how does the sum of the bandwidth of two hops relate to the cost of sending a packet); rather you should use something like delay.</p>
<dl class="section return"><dt>Returns</dt><dd>The metric field of the Global Routing Link Record. </dd></dl>

<p class="definition">Definition at line <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00118">118</a> of file <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html">dgr-router-interface.cc</a>.</p>

<p class="reference">References <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html#l00242">m_metric</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00198">ns3::DGRRoutingLSA::CopyLinkRecords()</a>, <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l00696">ns3::DGRRouteManagerImpl::InitializeRoutes()</a>, <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l01456">ns3::DGRRouteManagerImpl::SPFCalculate()</a>, and <a class="el" href="../../d3/d4c/dgr-route-manager-impl_8cc_source.html#l00861">ns3::DGRRouteManagerImpl::SPFNext()</a>.</p>
<div id="dynsection-4" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-4-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-4-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-4-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../de/d53/classns3_1_1_d_g_r_routing_link_record_af96cb9a05b3d95d14b6af29e058e3712_icgraph.png" border="0" usemap="#ade/d53/classns3_1_1_d_g_r_routing_link_record_af96cb9a05b3d95d14b6af29e058e3712_icgraph" alt=""/></div>
<map name="ade/d53/classns3_1_1_d_g_r_routing_link_record_af96cb9a05b3d95d14b6af29e058e3712_icgraph" id="ade/d53/classns3_1_1_d_g_r_routing_link_record_af96cb9a05b3d95d14b6af29e058e3712_icgraph">
<area shape="rect" title="Get the Metric Data field of the Global Routing Link Record." alt="" coords="769,152,973,192"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#a206ff392d0561c4b244a8c6fe8d824ab" title="Copy any Global Routing Link Records in a given Global Routing Link State Advertisement to the curren..." alt="" coords="539,69,697,109"/>
<area shape="poly" title=" " alt="" coords="796,150,679,112,681,107,797,145"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a3b798959aeda8a76373705151497692e" title="Compute routes using a Dijkstra SPF computation and populate per&#45;node forwarding tables." alt="" coords="5,156,212,196"/>
<area shape="poly" title=" " alt="" coords="756,172,721,172,491,171,260,175,212,176,212,170,260,169,491,166,721,167,756,167"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#a910c2efcc40a79d4c062eb08ceb11522" title="Calculate the shortest path first (SPF) tree." alt="" coords="260,184,467,224"/>
<area shape="poly" title=" " alt="" coords="755,182,467,200,467,195,755,177"/>
<area shape="rect" href="../../da/d20/classns3_1_1_d_g_r_route_manager_impl.html#ab573904f9f357e2b802b1bbdcdc3247d" title="Examine the links in v&#39;s LSA and update the list of candidates with any vertices not already on the l..." alt="" coords="515,235,721,275"/>
<area shape="poly" title=" " alt="" coords="797,199,681,237,679,232,796,194"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#a042cca1bebf1189a3e40f0c3abcd5937" title="Copy constructor for a Global Routing Link State Advertisement." alt="" coords="285,5,442,45"/>
<area shape="poly" title=" " alt="" coords="525,69,441,48,443,42,526,64"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#af09c521adba74e1538773cebf14b3929" title="Assignment operator for a Global Routing Link State Advertisement." alt="" coords="285,69,442,109"/>
<area shape="poly" title=" " alt="" coords="525,92,442,92,442,87,525,87"/>
<area shape="poly" title=" " alt="" coords="246,194,212,190,213,185,247,189"/>
<area shape="poly" title=" " alt="" coords="503,235,464,227,465,221,504,229"/>
</map>
</div>

</div>
</div>
<a id="a06083e776955f21fe1fd4e4927cf0b24" name="a06083e776955f21fe1fd4e4927cf0b24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06083e776955f21fe1fd4e4927cf0b24">&#9670;&#160;</a></span>SetLinkData()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ns3::DGRRoutingLinkRecord::SetLinkData </td>
          <td>(</td>
          <td class="paramtype">Ipv4Address&#160;</td>
          <td class="paramname"><em>addr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the Link Data field of the Global Routing Link Record. </p>
<p>For an OSPF type 1 link (PointToPoint) the Link Data must be the IP address of the node of the local side of the link.</p>
<p>For an OSPF type 3 link (StubNetwork), the Link Data must be set to the network mask</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">addr</td><td>An Ipv4Address to store in the Link Data field of the record. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00096">96</a> of file <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html">dgr-router-interface.cc</a>.</p>

<p class="reference">References <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html#l00225">m_linkData</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00198">ns3::DGRRoutingLSA::CopyLinkRecords()</a>, <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00875">ns3::DGRRouter::ProcessBridgedBroadcastLink()</a>, <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l01040">ns3::DGRRouter::ProcessPointToPointLink()</a>, and <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00761">ns3::DGRRouter::ProcessSingleBroadcastLink()</a>.</p>
<div id="dynsection-5" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-5-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-5-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-5-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../de/d53/classns3_1_1_d_g_r_routing_link_record_a06083e776955f21fe1fd4e4927cf0b24_icgraph.png" border="0" usemap="#ade/d53/classns3_1_1_d_g_r_routing_link_record_a06083e776955f21fe1fd4e4927cf0b24_icgraph" alt=""/></div>
<map name="ade/d53/classns3_1_1_d_g_r_routing_link_record_a06083e776955f21fe1fd4e4927cf0b24_icgraph" id="ade/d53/classns3_1_1_d_g_r_routing_link_record_a06083e776955f21fe1fd4e4927cf0b24_icgraph">
<area shape="rect" title="Set the Link Data field of the Global Routing Link Record." alt="" coords="880,133,1084,173"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#a206ff392d0561c4b244a8c6fe8d824ab" title="Copy any Global Routing Link Records in a given Global Routing Link State Advertisement to the curren..." alt="" coords="637,37,794,77"/>
<area shape="poly" title=" " alt="" coords="925,130,831,92,793,80,795,75,833,87,927,125"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#ac1075dd7ea9735e489838a39e29f6597" title="Process a bridged broadcast link." alt="" coords="599,101,832,141"/>
<area shape="poly" title=" " alt="" coords="866,142,832,138,832,133,867,137"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#aac014913150c42a93cecbc6a9daf7552" title="Process a point to point link." alt="" coords="305,223,521,263"/>
<area shape="poly" title=" " alt="" coords="933,182,885,203,833,220,752,235,670,244,522,249,522,244,670,239,751,230,831,215,883,198,931,177"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#a920b7e48d18135f51a66b010b6d730cc" title="Process a single broadcast link." alt="" coords="604,165,827,205"/>
<area shape="poly" title=" " alt="" coords="867,170,827,175,826,169,866,165"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#a042cca1bebf1189a3e40f0c3abcd5937" title="Copy constructor for a Global Routing Link State Advertisement." alt="" coords="335,5,492,45"/>
<area shape="poly" title=" " alt="" coords="623,50,492,36,493,31,624,45"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#af09c521adba74e1538773cebf14b3929" title="Assignment operator for a Global Routing Link State Advertisement." alt="" coords="335,69,492,109"/>
<area shape="poly" title=" " alt="" coords="624,70,493,84,492,78,623,64"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#aa562c84d9a117e26103ac8338ec8094f" title="Process a generic broadcast link." alt="" coords="276,173,551,198"/>
<area shape="poly" title=" " alt="" coords="608,147,475,175,474,170,607,142"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#ac119cda89d816da90186bb617c710c25" title="Walk the connected channels, discover the adjacent routers and build the associated number of Global ..." alt="" coords="5,202,228,227"/>
<area shape="poly" title=" " alt="" coords="271,202,229,206,228,201,271,197"/>
<area shape="poly" title=" " alt="" coords="291,234,228,228,229,223,292,229"/>
<area shape="poly" title=" " alt="" coords="590,188,551,188,551,183,590,183"/>
</map>
</div>

</div>
</div>
<a id="a203541f10ca13f9cfb1987fbbff4416b" name="a203541f10ca13f9cfb1987fbbff4416b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a203541f10ca13f9cfb1987fbbff4416b">&#9670;&#160;</a></span>SetLinkId()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ns3::DGRRoutingLinkRecord::SetLinkId </td>
          <td>(</td>
          <td class="paramtype">Ipv4Address&#160;</td>
          <td class="paramname"><em>addr</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the Link ID field of the Global Routing Link Record. </p>
<p>For an OSPF type 1 link (PointToPoint) the Link ID must be the Router ID of the neighboring router.</p>
<p>For an OSPF type 3 link (StubNetwork), the Link ID must be the adjacent neighbor's IP address</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">addr</td><td>An Ipv4Address to store in the Link ID field of the record. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00082">82</a> of file <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html">dgr-router-interface.cc</a>.</p>

<p class="reference">References <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html#l00214">m_linkId</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00198">ns3::DGRRoutingLSA::CopyLinkRecords()</a>, <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00875">ns3::DGRRouter::ProcessBridgedBroadcastLink()</a>, <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l01040">ns3::DGRRouter::ProcessPointToPointLink()</a>, and <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00761">ns3::DGRRouter::ProcessSingleBroadcastLink()</a>.</p>
<div id="dynsection-6" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-6-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-6-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-6-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../de/d53/classns3_1_1_d_g_r_routing_link_record_a203541f10ca13f9cfb1987fbbff4416b_icgraph.png" border="0" usemap="#ade/d53/classns3_1_1_d_g_r_routing_link_record_a203541f10ca13f9cfb1987fbbff4416b_icgraph" alt=""/></div>
<map name="ade/d53/classns3_1_1_d_g_r_routing_link_record_a203541f10ca13f9cfb1987fbbff4416b_icgraph" id="ade/d53/classns3_1_1_d_g_r_routing_link_record_a203541f10ca13f9cfb1987fbbff4416b_icgraph">
<area shape="rect" title="Set the Link ID field of the Global Routing Link Record." alt="" coords="880,133,1084,173"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#a206ff392d0561c4b244a8c6fe8d824ab" title="Copy any Global Routing Link Records in a given Global Routing Link State Advertisement to the curren..." alt="" coords="637,37,794,77"/>
<area shape="poly" title=" " alt="" coords="925,130,831,92,793,80,795,75,833,87,927,125"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#ac1075dd7ea9735e489838a39e29f6597" title="Process a bridged broadcast link." alt="" coords="599,101,832,141"/>
<area shape="poly" title=" " alt="" coords="866,142,832,138,832,133,867,137"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#aac014913150c42a93cecbc6a9daf7552" title="Process a point to point link." alt="" coords="305,223,521,263"/>
<area shape="poly" title=" " alt="" coords="933,182,885,203,833,220,752,235,670,244,522,249,522,244,670,239,751,230,831,215,883,198,931,177"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#a920b7e48d18135f51a66b010b6d730cc" title="Process a single broadcast link." alt="" coords="604,165,827,205"/>
<area shape="poly" title=" " alt="" coords="867,170,827,175,826,169,866,165"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#a042cca1bebf1189a3e40f0c3abcd5937" title="Copy constructor for a Global Routing Link State Advertisement." alt="" coords="335,5,492,45"/>
<area shape="poly" title=" " alt="" coords="623,50,492,36,493,31,624,45"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#af09c521adba74e1538773cebf14b3929" title="Assignment operator for a Global Routing Link State Advertisement." alt="" coords="335,69,492,109"/>
<area shape="poly" title=" " alt="" coords="624,70,493,84,492,78,623,64"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#aa562c84d9a117e26103ac8338ec8094f" title="Process a generic broadcast link." alt="" coords="276,173,551,198"/>
<area shape="poly" title=" " alt="" coords="608,147,475,175,474,170,607,142"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#ac119cda89d816da90186bb617c710c25" title="Walk the connected channels, discover the adjacent routers and build the associated number of Global ..." alt="" coords="5,202,228,227"/>
<area shape="poly" title=" " alt="" coords="271,202,229,206,228,201,271,197"/>
<area shape="poly" title=" " alt="" coords="291,234,228,228,229,223,292,229"/>
<area shape="poly" title=" " alt="" coords="590,188,551,188,551,183,590,183"/>
</map>
</div>

</div>
</div>
<a id="aacc16a8566cd389fd974cbeb8dde6ddd" name="aacc16a8566cd389fd974cbeb8dde6ddd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aacc16a8566cd389fd974cbeb8dde6ddd">&#9670;&#160;</a></span>SetLinkType()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ns3::DGRRoutingLinkRecord::SetLinkType </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4b">DGRRoutingLinkRecord::LinkType</a>&#160;</td>
          <td class="paramname"><em>linkType</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the Link Type field of the Global Routing Link Record. </p>
<p>The Link Type describes the kind of link a given record represents. The values are defined by OSPF.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4b" title="Enumeration of the possible types of Global Routing Link Records.">LinkType</a> </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">linkType</td><td>The new LinkType for the current Global Routing Link Record. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00110">110</a> of file <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html">dgr-router-interface.cc</a>.</p>

<p class="reference">References <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html#l00231">m_linkType</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00198">ns3::DGRRoutingLSA::CopyLinkRecords()</a>, <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00875">ns3::DGRRouter::ProcessBridgedBroadcastLink()</a>, <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l01040">ns3::DGRRouter::ProcessPointToPointLink()</a>, and <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00761">ns3::DGRRouter::ProcessSingleBroadcastLink()</a>.</p>
<div id="dynsection-7" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-7-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-7-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-7-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../de/d53/classns3_1_1_d_g_r_routing_link_record_aacc16a8566cd389fd974cbeb8dde6ddd_icgraph.png" border="0" usemap="#ade/d53/classns3_1_1_d_g_r_routing_link_record_aacc16a8566cd389fd974cbeb8dde6ddd_icgraph" alt=""/></div>
<map name="ade/d53/classns3_1_1_d_g_r_routing_link_record_aacc16a8566cd389fd974cbeb8dde6ddd_icgraph" id="ade/d53/classns3_1_1_d_g_r_routing_link_record_aacc16a8566cd389fd974cbeb8dde6ddd_icgraph">
<area shape="rect" title="Set the Link Type field of the Global Routing Link Record." alt="" coords="880,133,1084,173"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#a206ff392d0561c4b244a8c6fe8d824ab" title="Copy any Global Routing Link Records in a given Global Routing Link State Advertisement to the curren..." alt="" coords="637,37,794,77"/>
<area shape="poly" title=" " alt="" coords="925,130,831,92,793,80,795,75,833,87,927,125"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#ac1075dd7ea9735e489838a39e29f6597" title="Process a bridged broadcast link." alt="" coords="599,101,832,141"/>
<area shape="poly" title=" " alt="" coords="866,142,832,138,832,133,867,137"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#aac014913150c42a93cecbc6a9daf7552" title="Process a point to point link." alt="" coords="305,223,521,263"/>
<area shape="poly" title=" " alt="" coords="933,182,885,203,833,220,752,235,670,244,522,249,522,244,670,239,751,230,831,215,883,198,931,177"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#a920b7e48d18135f51a66b010b6d730cc" title="Process a single broadcast link." alt="" coords="604,165,827,205"/>
<area shape="poly" title=" " alt="" coords="867,170,827,175,826,169,866,165"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#a042cca1bebf1189a3e40f0c3abcd5937" title="Copy constructor for a Global Routing Link State Advertisement." alt="" coords="335,5,492,45"/>
<area shape="poly" title=" " alt="" coords="623,50,492,36,493,31,624,45"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#af09c521adba74e1538773cebf14b3929" title="Assignment operator for a Global Routing Link State Advertisement." alt="" coords="335,69,492,109"/>
<area shape="poly" title=" " alt="" coords="624,70,493,84,492,78,623,64"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#aa562c84d9a117e26103ac8338ec8094f" title="Process a generic broadcast link." alt="" coords="276,173,551,198"/>
<area shape="poly" title=" " alt="" coords="608,147,475,175,474,170,607,142"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#ac119cda89d816da90186bb617c710c25" title="Walk the connected channels, discover the adjacent routers and build the associated number of Global ..." alt="" coords="5,202,228,227"/>
<area shape="poly" title=" " alt="" coords="271,202,229,206,228,201,271,197"/>
<area shape="poly" title=" " alt="" coords="291,234,228,228,229,223,292,229"/>
<area shape="poly" title=" " alt="" coords="590,188,551,188,551,183,590,183"/>
</map>
</div>

</div>
</div>
<a id="ac6b9632b024b3799a25209f1392c1ab8" name="ac6b9632b024b3799a25209f1392c1ab8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6b9632b024b3799a25209f1392c1ab8">&#9670;&#160;</a></span>SetMetric()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ns3::DGRRoutingLinkRecord::SetMetric </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>metric</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the Metric Data field of the Global Routing Link Record. </p>
<p>The metric is an abstract cost associated with forwarding a packet across a link. A sum of metrics must have a well-defined meaning. That is, you shouldn't use bandwidth as a metric (how does the sum of the bandwidth of two hops relate to the cost of sending a packet); rather you should use something like delay.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">metric</td><td>The new metric for the current Global Routing Link Record. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00125">125</a> of file <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html">dgr-router-interface.cc</a>.</p>

<p class="reference">References <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html#l00242">m_metric</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00198">ns3::DGRRoutingLSA::CopyLinkRecords()</a>, <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00875">ns3::DGRRouter::ProcessBridgedBroadcastLink()</a>, <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l01040">ns3::DGRRouter::ProcessPointToPointLink()</a>, and <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00761">ns3::DGRRouter::ProcessSingleBroadcastLink()</a>.</p>
<div id="dynsection-8" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-8-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-8-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-8-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../de/d53/classns3_1_1_d_g_r_routing_link_record_ac6b9632b024b3799a25209f1392c1ab8_icgraph.png" border="0" usemap="#ade/d53/classns3_1_1_d_g_r_routing_link_record_ac6b9632b024b3799a25209f1392c1ab8_icgraph" alt=""/></div>
<map name="ade/d53/classns3_1_1_d_g_r_routing_link_record_ac6b9632b024b3799a25209f1392c1ab8_icgraph" id="ade/d53/classns3_1_1_d_g_r_routing_link_record_ac6b9632b024b3799a25209f1392c1ab8_icgraph">
<area shape="rect" title="Set the Metric Data field of the Global Routing Link Record." alt="" coords="880,133,1084,173"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#a206ff392d0561c4b244a8c6fe8d824ab" title="Copy any Global Routing Link Records in a given Global Routing Link State Advertisement to the curren..." alt="" coords="637,37,794,77"/>
<area shape="poly" title=" " alt="" coords="925,130,831,92,793,80,795,75,833,87,927,125"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#ac1075dd7ea9735e489838a39e29f6597" title="Process a bridged broadcast link." alt="" coords="599,101,832,141"/>
<area shape="poly" title=" " alt="" coords="866,142,832,138,832,133,867,137"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#aac014913150c42a93cecbc6a9daf7552" title="Process a point to point link." alt="" coords="305,223,521,263"/>
<area shape="poly" title=" " alt="" coords="933,182,885,203,833,220,752,235,670,244,522,249,522,244,670,239,751,230,831,215,883,198,931,177"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#a920b7e48d18135f51a66b010b6d730cc" title="Process a single broadcast link." alt="" coords="604,165,827,205"/>
<area shape="poly" title=" " alt="" coords="867,170,827,175,826,169,866,165"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#a042cca1bebf1189a3e40f0c3abcd5937" title="Copy constructor for a Global Routing Link State Advertisement." alt="" coords="335,5,492,45"/>
<area shape="poly" title=" " alt="" coords="623,50,492,36,493,31,624,45"/>
<area shape="rect" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html#af09c521adba74e1538773cebf14b3929" title="Assignment operator for a Global Routing Link State Advertisement." alt="" coords="335,69,492,109"/>
<area shape="poly" title=" " alt="" coords="624,70,493,84,492,78,623,64"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#aa562c84d9a117e26103ac8338ec8094f" title="Process a generic broadcast link." alt="" coords="276,173,551,198"/>
<area shape="poly" title=" " alt="" coords="608,147,475,175,474,170,607,142"/>
<area shape="rect" href="../../d0/d56/classns3_1_1_d_g_r_router.html#ac119cda89d816da90186bb617c710c25" title="Walk the connected channels, discover the adjacent routers and build the associated number of Global ..." alt="" coords="5,202,228,227"/>
<area shape="poly" title=" " alt="" coords="271,202,229,206,228,201,271,197"/>
<area shape="poly" title=" " alt="" coords="291,234,228,228,229,223,292,229"/>
<area shape="poly" title=" " alt="" coords="590,188,551,188,551,183,590,183"/>
</map>
</div>

</div>
</div>
<h2 class="groupheader">Friends And Related Symbol Documentation</h2>
<a id="ad6d7a02de74a135f5d909dcc2a7be8e7" name="ad6d7a02de74a135f5d909dcc2a7be8e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6d7a02de74a135f5d909dcc2a7be8e7">&#9670;&#160;</a></span>DGRRoutingLSA</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">friend class <a class="el" href="../../d5/d4d/classns3_1_1_d_g_r_routing_l_s_a.html">DGRRoutingLSA</a></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Friend class. </p>

<p class="definition">Definition at line <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html#l00054">54</a> of file <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html">dgr-router-interface.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a90859ad36a2936e26b9e933a323e35df" name="a90859ad36a2936e26b9e933a323e35df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90859ad36a2936e26b9e933a323e35df">&#9670;&#160;</a></span>m_linkData</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Ipv4Address ns3::DGRRoutingLinkRecord::m_linkData</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>m_linkId and m_linkData are defined by OSPF to have different meanings depending on the type of link a given link records represents. </p>
<p>They work together.</p>
<p>For Type 1 link (PointToPoint), set m_linkData to local IP address</p>
<p>For Type 3 link (Stub), set m_linkData to mask </p>

<p class="definition">Definition at line <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html#l00225">225</a> of file <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html">dgr-router-interface.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00089">GetLinkData()</a>, <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00404">ns3::DGRRoutingLSA::Print()</a>, and <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00096">SetLinkData()</a>.</p>

</div>
</div>
<a id="a19605f0540a6904bd5801a7e1bd07895" name="a19605f0540a6904bd5801a7e1bd07895"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19605f0540a6904bd5801a7e1bd07895">&#9670;&#160;</a></span>m_linkId</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Ipv4Address ns3::DGRRoutingLinkRecord::m_linkId</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>m_linkId and m_linkData are defined by OSPF to have different meanings depending on the type of link a given link records represents. </p>
<p>They work together.</p>
<p>For Type 1 link (PointToPoint), set m_linkId to Router ID of neighboring router.</p>
<p>For Type 3 link (Stub), set m_linkId to neighbor's IP address </p>

<p class="definition">Definition at line <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html#l00214">214</a> of file <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html">dgr-router-interface.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00075">GetLinkId()</a>, <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00404">ns3::DGRRoutingLSA::Print()</a>, and <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00082">SetLinkId()</a>.</p>

</div>
</div>
<a id="ae33ce84e5118670a92ec8253b4e35a6e" name="ae33ce84e5118670a92ec8253b4e35a6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae33ce84e5118670a92ec8253b4e35a6e">&#9670;&#160;</a></span>m_linkType</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html#a93b89b9f89407a39712186911ad12a4b">LinkType</a> ns3::DGRRoutingLinkRecord::m_linkType</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The type of the Global Routing Link Record. </p>
<p>Defined in the OSPF spec. We currently only use PointToPoint and StubNetwork types. </p>

<p class="definition">Definition at line <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html#l00231">231</a> of file <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html">dgr-router-interface.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00103">GetLinkType()</a>, <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00404">ns3::DGRRoutingLSA::Print()</a>, and <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00110">SetLinkType()</a>.</p>

</div>
</div>
<a id="ad36a9c3468f8ca6ef6335eff2dfca4fe" name="ad36a9c3468f8ca6ef6335eff2dfca4fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad36a9c3468f8ca6ef6335eff2dfca4fe">&#9670;&#160;</a></span>m_metric</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t ns3::DGRRoutingLinkRecord::m_metric</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The metric for a given link. </p>
<p>A metric is abstract cost associated with forwarding a packet across a link. A sum of metrics must have a well-defined meaning. That is, you shouldn't use bandwidth as a metric (how does the sum of the bandwidth of two hops relate to the cost of sending a packet); rather you should use something like delay. </p>

<p class="definition">Definition at line <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html#l00242">242</a> of file <a class="el" href="../../df/d96/dgr-router-interface_8h_source.html">dgr-router-interface.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00118">GetMetric()</a>, <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00404">ns3::DGRRoutingLSA::Print()</a>, and <a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html#l00125">SetMetric()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>model/<a class="el" href="../../df/d96/dgr-router-interface_8h_source.html">dgr-router-interface.h</a></li>
<li>model/<a class="el" href="../../de/d42/dgr-router-interface_8cc_source.html">dgr-router-interface.cc</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d7/d2e/namespacens3.html">ns3</a></li><li class="navelem"><a class="el" href="../../de/d53/classns3_1_1_d_g_r_routing_link_record.html">DGRRoutingLinkRecord</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7 </li>
  </ul>
</div>
</body>
</html>
